#include<bits/stdc++.h>
using namespace std;
int T,n,a[200005],ans;
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    cin>>T;
    for(int i=1;i<=T;i++)
    {
        cin>>n;
        for(int j=1;j<=n;j++)
        {
            cin>>a[j];
            cout<<n/2<<endl;
        }
    }
    return 0;
}
